﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;


namespace PropertyManagement
{
    public partial class default2 : System.Web.UI.Page
    {
        public DataTable dt;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                BindData();
                Page.DataBind();
            }
        }

        public void BindData()
        {
            string strsql = "select * from sxinwen order by stime desc limit 0,4";
            mydata myda = new mydata();
            DataSet ds = myda.getDataSet(strsql, "sxinwen");

            dt = ds.Tables["sxinwen"];
        }
    }
}